package com.qi.sqlSession;

import com.qi.pojo.Configuration;

/**
 * @author zjq
 * @version 1.0
 * @date 2021/12/5 17:10
 */
public class DefaultSqlSessionFactory implements SqlSessionFactory {
    private Configuration configuration;

    public DefaultSqlSessionFactory(Configuration configuration) {
        this.configuration = configuration;
    }

    @Override
    public SqlSession openSqlSession() {
        return new DefaultSqlSeeion(configuration);
    }
}
